<template>
  <!-- 首页---我 -->
  <div class="MyView">
    <div class="head">
      <van-nav-bar title="我"/>
      <div class="center">
        <!-- 我---头像---点击头像进入我的个人信息 -->
        <van-image
            round
            width="5rem"
            height="5rem"
            src="https://img01.yzcdn.cn/vant/cat.jpeg"
            @click="$router.push('/MyInfor')"
        />
      </div>
    </div>
    <!-- 我的主要内容部分 -->
    <van-cell title="病情日志" is-link to="/myillnesslog"/>
    <van-cell title="账户信息" is-link to="/mymessage"/>
    <van-cell title="我的医生" is-link to="/mydoctor"/>
    <van-cell title="设置" is-link to="/setting"/>
  </div>
</template>

<script>
export default {
  name: "MyView",
  data() {
    return {};
  },
  mounted() {
  },
  //点击头像--跳转到个人信息页
  methods: {},
};
</script>

<style scoped>
.center {
  padding-top: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  background-color: white;
}
</style>
